package nc.ui.arap.actions.verify;

import nc.ui.arap.engine.AbstractRuntime;
import nc.ui.glpub.UiManager;
import nc.vo.arap.exception.ExceptionHandler;


/**
 * nc.ui.arap.actions.verify.VerifyReturnAction
 *
 * @author twei
 *
 */
public class VerifyReturnAction extends VerifyBaseAction{
	
	public void execute(){
		
		getPanel().getIparent().closeMe();
		
		String pageStatus = getPanel().getPageStatus();

		this.setActionRunntimeV0((AbstractRuntime)((UiManager)getPanel().getIparent()).getStack().peek());
		
		if(pageStatus.equals("SimVerify")){
        	getCom().unSeqData();
        }
		
		else if(pageStatus.equals("SumtoVerify") || pageStatus.equals("") || pageStatus.equals("DetailtoVerify")){
			try{
	        	getCom().seqDataAfterVerify();
	        	VerifyQueryAction.setDateToPanel(getNormalPanel(), getCom());
			}catch (Exception e) {
				ExceptionHandler.consume(e);
			}
        }
	}
}
